<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js location地址栏</title>
</head>
<body>
	<div class="mian">
		<h1>aaaaaaaaaaaaaaa</h1>
	</div>

	<script>
		//alert(location.href); //获取地址栏地址
	
		//浏览器加载页面，跳转到百度
		location.href='http://www.baidu.com';
	</script>
</body>
</html>